﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hbrs.Soa.Restclient.Client
{
    public class SampleItem
    {
        public string Value { get; set; }
        public int Value2 { get; set; }
    }

    public class SampleItemClient : RestStarterClientBase<SampleItem>, ISampleItemService
    {
        public SampleItemClient()
        {
        }

        public SampleItemClient(string baseUrl)
            : base(baseUrl)
        { 
        }

        public void AddItem(SampleItem newItem)
        {
            base.OnAddItem(newItem);
        }

        public void DeleteItem()
        {
            base.OnDeleteItem();
        }

        public void DeleteItem(string id)
        {
            base.OnDeleteItem(id);
        }

        public SampleItem GetItem()
        {
            return base.OnGetItem();
        }

        public SampleItem GetItem(string id)
        {
            return base.OnGetItem(id);
        }

        public SampleItem UpdateItem(SampleItem newItem)
        {
            return base.OnUpdateItem(newItem);
        }

        public IDictionary<string, SampleItem> GetItems()
        {
            return base.OnGetItems();
        }
    }
}
